home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / sbin / casper-getty < prev    next >
Text File  |  2008-10-25  |  268b  |  16 lines

  1. #! /bin/sh
  2.  
  3. autologin=1
  4. for opt in "$@" ; do
  5.         if [ "$opt" = "-l" -o "$opt" = "-n" ] ; then
  6.                 autologin=0
  7.         fi
  8. done
  9.  
  10. if [ "$autologin" = "1" ] ; then
  11.          exec /sbin/getty -n -l /sbin/casper-login $*
  12. else
  13.          exec /sbin/getty $*
  14. fi
  15.  
  16.